"""
@name : sing
@author : wangaokang
@projectname: pythonProject6
"""
import random

print('输入exit退出')

singer = ['zhangjie','dengziqi','xueziqian','wangaokang']
sing = ['dongwushuijie','yanyaun','gaobaiqiqiu','yujian']

read = input('请输入go开始:')
while read == 'go':

    read1 = input("增加歌曲输入add_sing,增加人数输入add_singer：")
    if read1 == 'add_sing':
        add_sing = sing.append(input())

    elif read1 == 'add_singer':
        add_singer = singer.append(input())

    elif read == 'exit':
        print('结束')
        break

    elif len(singer) == 0 or len(sing) == 0:
        break

    else:
        singer1 = random.choice(singer)
        sing1 = random.choice(sing)
        singer.remove(singer1)
        sing.remove(sing1)
        print(f'还有%d个人没唱歌，还有%d首歌曲' % (len(singer), len(sing)))

print('请重新导入歌单或选手：')
